<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TWindow类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_window-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TWindow类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TWindow 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_window.png" usemap="#TWindow_map" alt=""/>
  <map id="TWindow_map" name="TWindow_map">
<area href="class_t_window_base.html" alt="TWindowBase" shape="rect" coords="0,56,91,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3930119f9c88057022bc137bff63843b"><td class="memItemLeft" align="right" valign="top"><a id="a3930119f9c88057022bc137bff63843b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindow</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a3930119f9c88057022bc137bff63843b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5224a1fb6d205eb5abb85403541a55"><td class="memItemLeft" align="right" valign="top"><a id="adb5224a1fb6d205eb5abb85403541a55"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindow</b> (const window_t *nativeObj)</td></tr>
<tr class="separator:adb5224a1fb6d205eb5abb85403541a55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e6b6d600854e9bc2a2030dd8c679765"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a7e6b6d600854e9bc2a2030dd8c679765">SetFullscreen</a> (bool fullscreen)</td></tr>
<tr class="separator:a7e6b6d600854e9bc2a2030dd8c679765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a6cb9374626bd4ab0a49504cb8574a5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a0a6cb9374626bd4ab0a49504cb8574a5">Close</a> ()</td></tr>
<tr class="separator:a0a6cb9374626bd4ab0a49504cb8574a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99bcd7893a83d4b00ee6bbe3496be946"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a99bcd7893a83d4b00ee6bbe3496be946">CloseForce</a> ()</td></tr>
<tr class="separator:a99bcd7893a83d4b00ee6bbe3496be946"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a170581f14ff2dd24ec9d3f85f6de134c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a170581f14ff2dd24ec9d3f85f6de134c">GetFullscreen</a> () const</td></tr>
<tr class="separator:a170581f14ff2dd24ec9d3f85f6de134c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t_window_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_t_window_base.html">TWindowBase</a></td></tr>
<tr class="memitem:a8ee82f7d1d7c5d8ec69d3013587ad497 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a8ee82f7d1d7c5d8ec69d3013587ad497"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindowBase</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a8ee82f7d1d7c5d8ec69d3013587ad497 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf3bcfc0b3a710b7b466c2b16446123c inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="abf3bcfc0b3a710b7b466c2b16446123c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindowBase</b> (const window_base_t *nativeObj)</td></tr>
<tr class="separator:abf3bcfc0b3a710b7b466c2b16446123c inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601f1606bf5af9351729e8cf6d9a66b3 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a601f1606bf5af9351729e8cf6d9a66b3">GetTheme</a> () const</td></tr>
<tr class="separator:a601f1606bf5af9351729e8cf6d9a66b3 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785e621ad5b45b66df5407042c967f95 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">window_closable_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a785e621ad5b45b66df5407042c967f95">GetClosable</a> () const</td></tr>
<tr class="separator:a785e621ad5b45b66df5407042c967f95 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a999ec9d1a83b966a1dca2d41bcbbe61f inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a999ec9d1a83b966a1dca2d41bcbbe61f">GetOpenAnimHint</a> () const</td></tr>
<tr class="separator:a999ec9d1a83b966a1dca2d41bcbbe61f inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a916fe8622c4e893c76fd3a505eb898d8 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a916fe8622c4e893c76fd3a505eb898d8">GetCloseAnimHint</a> () const</td></tr>
<tr class="separator:a916fe8622c4e893c76fd3a505eb898d8 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c891e673ad398018e950b2123518096 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a2c891e673ad398018e950b2123518096">GetMoveFocusPrevKey</a> () const</td></tr>
<tr class="separator:a2c891e673ad398018e950b2123518096 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a779b72528696980bc6e8216f975b7552 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a779b72528696980bc6e8216f975b7552">GetMoveFocusNextKey</a> () const</td></tr>
<tr class="separator:a779b72528696980bc6e8216f975b7552 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08702c73171683fadc8cfcdd88a9b78b inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a08702c73171683fadc8cfcdd88a9b78b">GetMoveFocusUpKey</a> () const</td></tr>
<tr class="separator:a08702c73171683fadc8cfcdd88a9b78b inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a298b383e463a6c6855e4789b97329649 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a298b383e463a6c6855e4789b97329649">GetMoveFocusDownKey</a> () const</td></tr>
<tr class="separator:a298b383e463a6c6855e4789b97329649 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2812b0aec83f6358c93382ade42251cb inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a2812b0aec83f6358c93382ade42251cb">GetMoveFocusLeftKey</a> () const</td></tr>
<tr class="separator:a2812b0aec83f6358c93382ade42251cb inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75401bad5c3a209a65087ed952347dc4 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a75401bad5c3a209a65087ed952347dc4">GetMoveFocusRightKey</a> () const</td></tr>
<tr class="separator:a75401bad5c3a209a65087ed952347dc4 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af9d029d34cf8e4a08d64b01c4de0ed92"><td class="memItemLeft" align="right" valign="top"><a id="af9d029d34cf8e4a08d64b01c4de0ed92"></a>
static <a class="el" href="class_t_window.html">TWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:af9d029d34cf8e4a08d64b01c4de0ed92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4959f3e7f13f7622be879de23d7567e"><td class="memItemLeft" align="right" valign="top"><a id="ae4959f3e7f13f7622be879de23d7567e"></a>
static <a class="el" href="class_t_window.html">TWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:ae4959f3e7f13f7622be879de23d7567e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb9164756736030e12711d28a983db70"><td class="memItemLeft" align="right" valign="top"><a id="aeb9164756736030e12711d28a983db70"></a>
static <a class="el" href="class_t_window.html">TWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:aeb9164756736030e12711d28a983db70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a431734f6710569c2a8c28b54c11867e2"><td class="memItemLeft" align="right" valign="top"><a id="a431734f6710569c2a8c28b54c11867e2"></a>
static <a class="el" href="class_t_window.html">TWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a431734f6710569c2a8c28b54c11867e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4fc6b5d8fac2932134569302a8488f9"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#ac4fc6b5d8fac2932134569302a8488f9">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ac4fc6b5d8fac2932134569302a8488f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addd0434544323d6bd4ee8b19a238ec4b"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#addd0434544323d6bd4ee8b19a238ec4b">CreateDefault</a> ()</td></tr>
<tr class="separator:addd0434544323d6bd4ee8b19a238ec4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92c9649b9e78f6923de705d3424b7c42"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a92c9649b9e78f6923de705d3424b7c42">Open</a> (const char *name)</td></tr>
<tr class="separator:a92c9649b9e78f6923de705d3424b7c42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f63a7cf6ecae89af1fa880a6126919d"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window.html#a0f63a7cf6ecae89af1fa880a6126919d">OpenAndClose</a> (const char *name, TWidget &amp;to_close)</td></tr>
<tr class="separator:a0f63a7cf6ecae89af1fa880a6126919d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_t_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_t_window_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_t_window_base.html">TWindowBase</a></td></tr>
<tr class="memitem:a3fb2635fa070697e58c5ded7fc379f9a inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a3fb2635fa070697e58c5ded7fc379f9a"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a3fb2635fa070697e58c5ded7fc379f9a inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9257e5853c911e1b72be7c3e284a86bc inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a9257e5853c911e1b72be7c3e284a86bc"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a9257e5853c911e1b72be7c3e284a86bc inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c2165d59c4e3468f4e4a3369132f9a inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a96c2165d59c4e3468f4e4a3369132f9a"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a96c2165d59c4e3468f4e4a3369132f9a inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b0b15eadef758ff6d7adea4b88128b3 inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a2b0b15eadef758ff6d7adea4b88128b3"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a2b0b15eadef758ff6d7adea4b88128b3 inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>窗口。</p>
<p>缺省的应用程序窗口，占用除system_bar_t之外的整个区域，请不要修改它的位置和大小(除非你清楚后果)。</p>
<p>window_t是window\_base\_t的子类控件，window_base_t的函数均适用于window_t控件。</p>
<p>在xml中使用"window"标签创建窗口。无需指定坐标和大小，可以指定主题和动画名称。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">window</span> <span class="keyword">theme</span>=<span class="stringliteral">&quot;basic&quot;</span> <span class="keyword">anim_hint</span>=<span class="stringliteral">&quot;htranslate&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">window</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p></p>
<p></p>
</blockquote>
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/">window.xml</a></p>
<p>在c代码中使用函数window_create创建窗口。如：</p>
<blockquote class="doxtable">
<p>无需指定父控件、坐标和大小，使用0即可。 </p>
</blockquote>
<blockquote class="doxtable">
<p>完整示例请参考：[window </p>
</blockquote>
<p>demo](<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/">https://github.com/zlgopen/awtk-c-demos/blob/master/demos/</a>)</p>
<p>可用通过style来设置窗口的风格，如背景颜色或图片等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bricks&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;bricks&quot;</span>  <span class="keyword">bg_image_draw_type</span>=<span class="stringliteral">&quot;repeat&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[theme </p>
</blockquote>
<p>default](<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L0">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L0</a>) </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a0a6cb9374626bd4ab0a49504cb8574a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a6cb9374626bd4ab0a49504cb8574a5">&#9670;&nbsp;</a></span>Close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TWindow::Close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>关闭窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a99bcd7893a83d4b00ee6bbe3496be946"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99bcd7893a83d4b00ee6bbe3496be946">&#9670;&nbsp;</a></span>CloseForce()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TWindow::CloseForce </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>立即无条件关闭窗口(无动画)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac4fc6b5d8fac2932134569302a8488f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4fc6b5d8fac2932134569302a8488f9">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TWindow::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建window对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="addd0434544323d6bd4ee8b19a238ec4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addd0434544323d6bd4ee8b19a238ec4b">&#9670;&nbsp;</a></span>CreateDefault()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TWindow::CreateDefault </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>以缺省的方式创建window对象。</p>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a170581f14ff2dd24ec9d3f85f6de134c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a170581f14ff2dd24ec9d3f85f6de134c">&#9670;&nbsp;</a></span>GetFullscreen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TWindow::GetFullscreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否全屏。</p>
<p>&gt;这里全屏是指与LCD相同大小，而非让SDL窗口全屏。 </p>

</div>
</div>
<a id="a92c9649b9e78f6923de705d3424b7c42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92c9649b9e78f6923de705d3424b7c42">&#9670;&nbsp;</a></span>Open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TWindow::Open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从资源文件中加载并创建window_base对象。本函数在ui_loader/ui_builder_default里实现。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>window的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a0f63a7cf6ecae89af1fa880a6126919d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f63a7cf6ecae89af1fa880a6126919d">&#9670;&nbsp;</a></span>OpenAndClose()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TWindow::OpenAndClose </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>to_close</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从资源文件中加载并创建window对象。本函数在ui_loader/ui_builder_default里实现。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>window的名称。 </td></tr>
    <tr><td class="paramname">to_close</td><td>关闭该窗口。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a7e6b6d600854e9bc2a2030dd8c679765"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e6b6d600854e9bc2a2030dd8c679765">&#9670;&nbsp;</a></span>SetFullscreen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TWindow::SetFullscreen </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fullscreen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置为全屏窗口。</p>
<p>&gt;这里全屏是指与LCD相同大小，而非让SDL窗口全屏。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fullscreen</td><td>是否全屏。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
